package cn.stylefeng.guns.modular.hp.service.imp;

import cn.stylefeng.guns.modular.hp.dao.PresidentMailInfoMapper;
import cn.stylefeng.guns.modular.hp.model.PresidentMailInfo;
import cn.stylefeng.guns.modular.hp.service.IPresidentMailInfoService;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 院长信箱表实体类 服务实现类
 * </p>
 *
 * @author xzqiang
 * @date 2019-05-26
 */
@Service
public class PresidentMailInfoServiceImpl extends ServiceImpl<PresidentMailInfoMapper, PresidentMailInfo> implements IPresidentMailInfoService {
    @Override
    public List<PresidentMailInfo> presidentMailInfoList(Integer startIndex, Integer size) {
        return this.baseMapper.presidentMailInfoList(startIndex,size);
    }

    @Override
    public Integer presidentMailInfoCont() {
        return this.baseMapper.presidentMailInfoCont();
    }

    @Override
    public List<Map<String, Object>> getMailList(Page<PresidentMailInfo> page, String orderByField, boolean asc) {
        return this.baseMapper.getMailList(page, orderByField, asc);
    }
}
